package com.springcloudconfig;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients // 开启 feign 功能
@EnableDiscoveryClient // 对服务发现进行激活，用来动态获取 eureka server 路径
@EnableEurekaClient
@SpringBootApplication
public class SpringCloudConfigClientConsumerTest {
    public static void main(String[] args) {
        SpringApplication.run(SpringCloudConfigClientConsumerTest.class,args);
    }
}
